﻿using BLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Nancy.Json;
using Newtonsoft.Json;
using RepositorySys.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using utils;
using utils.enums;
using Utils;

namespace RepositorySys.Controllers
{
    public class HomeController : Controller
    {
        
        public IActionResult Index()
        {
            if (String.IsNullOrEmpty(HttpContext.Session.GetString("userName")))
            {
                return Redirect("/Login/Index");

            }
            return View();
        }

        

      
    }
}
